<!--
  @author lishuangjiang
  @since 2019/3/25 10:12
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>员工数据权限列表</title>
</head>
<body>

<div class="layui-fluid">

    <!--面包屑-->
    <blockquote class="layui-crumb">
        组织关系&nbsp;&nbsp;>&nbsp;&nbsp;
        <a lay-href="/mc/staff/list.action" lay-text="员工管理" th:text="员工管理">员工管理</a>
        &nbsp;&nbsp;>&nbsp;&nbsp;数据权限
    </blockquote>

    <div class="layui-card">

    <div class="layui-split">&nbsp;</div>

    <form method="post" id="staff_permit_list" lay-filter="staff_permit_list">
        <div class="layui-form" th:include="mc/staffpermitdata/_query :: query "></div>
    </form>

    <div class="layui-card-body">
        <table class="layui-hide" id="zmn-staffpermitdata-table" lay-filter="staffpermitdata"></table>
        <script type="text/html" id="zmn-staffpermitdata-table-tool">
            <div class="layui-btn-container">
                <div class="layui-btn-group">
                    <zmn th:if="${#authPermit.checkPermit('/mc/staffpermit/del.action')}" >
                        <button class="layui-btn layui-btn-sm layui-btn-danger" id="delPermit" lay-event="del">删除权限</button>
                    </zmn>
                </div>
                <div class="layui-btn-group">
                    <zmn th:if="${#authPermit.checkPermit('/mc/staffpermit/detail.action')}">
                        <button class="layui-btn layui-btn-sm layui-btn-primary">
                            <i class="layui-icon"></i>
                            <a onclick="toEditPermit()">权限管理</a>
                        </button>
                    </zmn>
                </div>
            </div>
        </script>
    </div>

</div>
</div>
<script type="text/javascript" th:inline="javascript">

    var json = {
        hasView: [[${#authPermit.checkPermit('/mc/permit/data/list.action')}]],
        hasEdit: [[${#authPermit.checkPermit('/mc/permit/data/detail.action')}]],
        staffId: [[${staff.staffId}]]
    };

    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        art_staffpermitdata_list: "/mc/staffpermitdata/zmn.art.staffpermitdata.list",
    }).use(['index', 'art_staffpermitdata_list']);

</script>
</body>
</html>